import {createRouter, createWebHashHistory} from 'vue-router';
export const ConstantRouterMap = [
    // {
    //     path: '/redirect/:path(.*)',
    //     component: () => import('../views/redirect/index.vue')
    //     // hidden: true,
    // },
    {
        path: '/',
        name: 'index',
        meta: {
            title: 'index',
        },
        component: () => import('../views/index/index.vue')
    }
]
const router = createRouter({
    history: createWebHashHistory(),
    scrollBehavior(to, from, savedPosition) {
        return {top: 0}
    },
    routes: ConstantRouterMap
    // routes: ConstantRouterMap
})
export default router
